package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.GrassDao;
import io.renren.modules.generator.entity.GrassEntity;
import io.renren.modules.generator.service.GrassService;



@Service("grassService")
public class GrassServiceImpl implements GrassService {
	@Autowired
	private GrassDao grassDao;
	
	@Override
	public GrassEntity queryObject(Integer grassId){
		return grassDao.queryObject(grassId);
	}
	
	@Override
	public List<GrassEntity> queryList(Map<String, Object> map){
		return grassDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return grassDao.queryTotal(map);
	}
	
	@Override
	public void save(GrassEntity grass){
		grassDao.save(grass);
	}
	
	@Override
	public void update(GrassEntity grass){
		grassDao.update(grass);
	}
	
	@Override
	public void delete(Integer grassId){
		grassDao.delete(grassId);
	}
	
	@Override
	public void deleteBatch(Integer[] grassIds){
		grassDao.deleteBatch(grassIds);
	}

	@Override
	public List<GrassEntity> nameList(Map<String, Object> map){
		return grassDao.nameList(map);
	}

	@Override
	public int nameTotal(Map<String, Object> map){
		return grassDao.nameTotal(map);
	}
	
}
